home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
IRIX Base Documentation 1998 November
/
IRIX 6.5.2 Base Documentation November 1998.img
/
usr
/
share
/
catman
/
u_man
/
cat1
/
cd.z
/
cd
Wrap
Text File
|
1998-10-20
|
2KB
|
67 lines
ccccdddd((((1111)))) ccccdddd((((1111))))
NNNNAAAAMMMMEEEE
cd - change working directory
SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
ccccdddd [ directory ]
DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
If _d_i_r_e_c_t_o_r_y is not specified, the value of shell parameter $$$$HHHHOOOOMMMMEEEE is used
as the new working directory. If _d_i_r_e_c_t_o_r_y specifies a complete path
starting with ////, ...., ........, _d_i_r_e_c_t_o_r_y becomes the new working directory. If
neither case applies, _c_d tries to find the designated directory relative
to one of the paths specified by the $$$$CCCCDDDDPPPPAAAATTTTHHHH shell variable. $$$$CCCCDDDDPPPPAAAATTTTHHHH has
the same syntax as, and similar semantics to, the $$$$PPPPAAAATTTTHHHH shell variable.
_c_d must have execute (search) permission in _d_i_r_e_c_t_o_r_y.
Because a new process is created to execute each command, _c_d would be
ineffective if it were written as a normal command; therefore, it is
recognized and is internal to the shell.
SSSSEEEEEEEE AAAALLLLSSSSOOOO
pwd(1), sh(1), chdir(2).
PPPPaaaaggggeeee 1111